-
Notifications
You must be signed in to change notification settings - Fork 554
test(client): debuggability via console or debugger #25351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
71f55fd
to
e414272
Compare
1364386
to
8fae418
Compare
e414272
to
ca2c5b4
Compare
8fae418
to
1781491
Compare
1781491
to
84d3389
Compare
- log extra error from test process to console without mocha redirection - use FLUID_TEST_VERBOSE to control child logging that now optional outputs messaging and select telemetry
- For longer test cases, modify that case's timeout without impacting general timeouts. - Detect when debugger is attached and alter timeouts to increase by x1000
84d3389
to
e1008e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances test debuggability by adding console logging controls and debugger timeout handling for multi-process end-to-end tests. The changes enable better visibility into test execution and prevent debugging timeouts.
- Adds debugger detection and automatic timeout adjustment (x1000 multiplier when debugger attached)
- Implements FLUID_TEST_VERBOSE environment variable to control child process logging verbosity
- Introduces testConsole to capture original console methods before test infrastructure modifications
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
presenceTest.spec.ts | Adds debugger detection, timeout management, and dynamic test timeout setting |
orchestratorUtils.ts | Implements testConsole capture and child logging verbosity controls |
childClient.ts | Adds selective telemetry logging and message verbosity based on environment variable |
package.json | Adds new npm scripts for verbose and very verbose test execution |
...ges/service-clients/end-to-end-tests/azure-client/src/test/multiprocess/presenceTest.spec.ts
Show resolved
Hide resolved
...ges/service-clients/end-to-end-tests/azure-client/src/test/multiprocess/orchestratorUtils.ts
Show resolved
Hide resolved
...ges/service-clients/end-to-end-tests/azure-client/src/test/multiprocess/orchestratorUtils.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Console logging updates:
Under debugger updates: